package com.zpark.it.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Title: CartConfiguration
 * @Author Charles
 * @Package com.zpark.it.config
 * @Date 2023/7/26 17:34
 */
@Configuration
public class CartConfiguration {
    /**
     * mq序列化方式，选择json！
     * @return
     */
    @Bean
    public MessageConverter messageConverter(){

        return new Jackson2JsonMessageConverter();
    }
}
